package cn.stylefeng.guns.sys.modular.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 收发存
 * </p>
 *
 * @author 
 * @since 2021-10-25
 */
@TableName("bty_md_sfc")
@Data
public class BtyMdSfc implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 收发存id
     */
      @TableId(value = "bty_md_sfc_id", type = IdType.ID_WORKER)
    private Long btyMdSfcId;

    /**
     * 财务id
     */
    @TableField("bty_md_caiwu_id")
    private Long btyMdCaiwuId;

    /**
     * 行号
     */
    @TableField("sx")
    private Integer sx;

    /**
     * 存货名称
     */
    @TableField("good_name")
    private String goodName;

    /**
     * 规格
     */
    @TableField("good_spec")
    private String goodSpec;

    /**
     * 创建时间
     */
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * create_user 创建人
     */
      @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改时间
     */
      @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * update_user 修改人
     */
      @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    /**
     * 计量单位
     */
    @TableField("unit")
    private String unit;

    /**
     * 存货分类名称
     */
    @TableField("class_name")
    private String className;

    /**
     * 部门
     */
    @TableField("shop_name")
    private String shopName;

    /**
     * 期初数量
     */
    @TableField("qc_num")
    private BigDecimal qcNum;

    /**
     * 期初单价
     */
    @TableField("qc_price")
    private BigDecimal qcPrice;

    /**
     * 期初金额
     */
    @TableField("qc_money")
    private BigDecimal qcMoney;

    /**
     * 收入数量
     */
    @TableField("sr_num")
    private BigDecimal srNum;

    /**
     * 收入单价
     */
    @TableField("sr_price")
    private BigDecimal srPrice;

    /**
     * 收入金额
     */
    @TableField("sr_money")
    private BigDecimal srMoney;

    /**
     * 发出数量
     */
    @TableField("fc_num")
    private BigDecimal fcNum;

    /**
     * 发出单价
     */
    @TableField("fc_price")
    private BigDecimal fcPrice;

    /**
     * 发出金额
     */
    @TableField("fc_money")
    private BigDecimal fcMoney;

    /**
     * 结存数量
     */
    @TableField("jc_num")
    private BigDecimal jcNum;

    /**
     * 结存单价
     */
    @TableField("jc_price")
    private BigDecimal jcPrice;

    /**
     * 结存金额
     */
    @TableField("jc_money")
    private BigDecimal jcMoney;


    @Override
    public String toString() {
        return "BtyMdSfc{" +
        "btyMdSfcId=" + btyMdSfcId +
        ", btyMdCaiwuId=" + btyMdCaiwuId +
        ", sx=" + sx +
        ", goodName=" + goodName +
        ", goodSpec=" + goodSpec +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        ", unit=" + unit +
        ", className=" + className +
        ", shopName=" + shopName +
        ", qcNum=" + qcNum +
        ", qcPrice=" + qcPrice +
        ", qcMoney=" + qcMoney +
        ", srNum=" + srNum +
        ", srPrice=" + srPrice +
        ", srMoney=" + srMoney +
        ", fcNum=" + fcNum +
        ", fcPrice=" + fcPrice +
        ", fcMoney=" + fcMoney +
        ", jcNum=" + jcNum +
        ", jcPrice=" + jcPrice +
        ", jcMoney=" + jcMoney +
        "}";
    }
}
